import Vue from 'vue'
import Vuex from 'vuex'
import home from './home'
import user from './user'

// 安装插件
Vue.use(Vuex)

const actions = {}
const mutations = {}
const state = {}
const getters = {}

// 创建并暴露一个store对象
export default new Vuex.Store({
	actions,
	mutations,
	state,
	getters,
	modules:{
		home,
		user
	}
})